﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using WebApplication1.Classes;

namespace WebApplication1
{
    public partial class SiteMaster : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
			if (!Usuario.IsLogged)
			{
				NavigationMenu.Items.RemoveAt(2);
				NavigationMenu.Items.RemoveAt(1);
			}
        }

		protected void lnkSair_Click(object sender, EventArgs e)
		{
			Session.Abandon();
			Response.Redirect("~/");
		}
    }
}
